<template>
  <div>
    <!-- logo导航模块 -->
    <div class="banner">
      <a href=""
        ><div class="logo"><img src="/images/logo.png" alt="" /></div
      ></a>
      <div class="nav">
        <ul class="nav_box">
          <li><a href="">小米手机</a></li>
          <li><a href="">Redmi红米</a></li>
          <li><a href="">电视</a></li>
          <li><a href="">笔记本</a></li>
          <li><a href="">平板</a></li>
          <li><a href="">家电</a></li>
          <li><a href="">路由器</a></li>
          <li><a href="">智能硬件</a></li>
          <li><a href="">服务</a></li>
          <li><a href="">社区</a></li>
        </ul>
      </div>

      <div class="search">
        <div class="text">
          <input type="text" class="shuru" placeholder="小米11" />
        </div>
        <div class="submit">
          <input type="submit" class="sousuo" value="搜索" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss">
.banner {
  min-width: 1232px;
  height: 100px;
  padding-top: 10px;
  margin: 0 auto;
  margin-bottom: 20px;
  position: relative;
  .logo {
    position: absolute;
    left: 10%;
    float: left;
    margin: 20px 0;
  }
  .logo img {
    width: 60px;
    height: 60px;
  }
  .nav {
    width: 60%;
    height: 100px;
    display: flex;
    position: absolute;
    left: 20%;
    .nav_box li {
      float: left;
      height: 100px;
      line-height: 100px;
    }
    .nav_box li a {
      display: inline-block;
      color: #000;
      font-size: 16px;
      padding: 0 10px;
    }
    .nav_box li a:hover {
      color: rgb(255, 103, 0);
    }
    .nav_box:hover + .nav_pop {
      display: block;
      // transform: translate3d(10px);
      // // transform: translateY(-10px);
      // transition: linear 1s;
      // position: fixed;
      transform: translateX(100px);
      transition: all linear 1s;
    }
    .nav_pop {
      width: 100%;
      // height: 300px;
      position: absolute;
      display: none;
      background-color: #f5f5f5;
      top: 120%;
      margin: 0 auto;
      // display: none;
      // display: block;
      z-index: 999;
      border-top: 1px solid #ccc;
      ul {
        margin: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;

        li .showBox {
          padding-top: 10px;
          padding-right: 10px;
          border-right: 1px solid #f5f5f5;
          img {
            width: 104px;
          }
          .sbox_tilte {
            font-size: 14px;
            color: #666;
          }
          .price {
            font-size: 12px;
            color: rgb(255, 103, 0);
          }
        }
      }
    }
  }

  .search {
    display: flex;
    width: 30%;
    height: 80px;
    line-height: 100px;
    float: right;
    position: absolute;
    right: 0%;
    .text {
      width: 250px;
      height: 50px;
      line-height: 50px;
      font-size: 12px;
      margin-top: 25px;
      border: 1px solid #ccc;
      float: left;
    }
    .text:hover {
      border-color: #ff6700;
    }
    .text .shuru {
      border: none;
      width: 250px;
      height: 30px;
      padding-left: 10px;
    }
    .submit {
      float: left;
      width: 50px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size: 12px;
      margin-top: 25px;
      border: 1px solid #ccc;
    }
    .submit .sousuo {
      letter-spacing: 3px;
      text-align: center;
      width: 50px;
      height: 50px;
      border: none;
      background: none;
      cursor: pointer;
    }
    .submit:hover {
      border-color: #ff6700;
      color: #ff6700;
    }
    .submit:focus {
      border-color: #ff6700;
      color: #ff6700;
    }
  }
}
</style>